import request from '/@/utils/request';

export function userApi() {
    return {
        // 表格列表
        userTableApi: (params: object) => {
            return request({
                url: '/api/admin/basic/intersections',
                method: 'get',
                params,
            });
        },
        // 添加
        userAddApi: (data: object) => {
            return request({
                url: '/api/admin/basic/intersection',
                method: 'post',
                data,
            });
        },
        // 编辑
        userEditApi: (data: object) => {
            return request({
                url: '/api/admin/basic/intersection',
                method: 'put',
                data,
            });
        },
        // 删除
        userDelApi: (data: object) => {
            return request({
                url: '/api/admin/basic/intersection',
                method: 'delete',
                data,
            });
        },

    }
}